package sample.client.presenter;

import sample.client.CMModel;
import sample.client.view.MainPanel;

import com.google.gwt.user.client.ui.HasWidgets;
import com.google.inject.Inject;
import com.google.inject.name.Named;

public class CMPresenter implements Presenter
{
  private CMModel model;

  private boolean showBorders;

  @Inject
  public CMPresenter(CMModel model, @Named("showBorders") boolean showBorders) {
    super();
    this.model = model;
    this.showBorders = showBorders;
  }

  @Override
  public void go(HasWidgets container) {
    container.add(new MainPanel(model, showBorders));
  }
}
